from django import template
import re

wikilink = re.compile(r'\b(([A-Z]+[a-z]+){2,})\b')
register = template.Library()

@register.filter
def wikify(value):
	return wikilink.sub(r"<a href='/onk/\1/'>\1</a>", value)